package net.oschina.renyong.query.generator.po;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 特殊查询配置集，对应完整的xml配置文件内容
 * @author Timothy
 */
@XmlRootElement(name = "configViews")
@XmlAccessorType(XmlAccessType.FIELD)
public class ConfigViews {

	/** 整数类型的函数，多个函数之间用英文逗号分隔；可选 */
	private String integerFunction;
	/** 字符串类型的函数，多个函数之间用英文逗号分隔；可选 */
	private String stringFunction;
	/** 查询配置的集合 */
	@XmlElement(name = "configQuery")
	private List<ConfigQuery> configQueries = null;

	public String getIntegerFunction() {
		return integerFunction;
	}

	public ConfigViews setIntegerFunction(String integerFunction) {
		this.integerFunction = integerFunction;
		return this;
	}

	public String getStringFunction() {
		return stringFunction;
	}

	public ConfigViews setStringFunction(String stringFunction) {
		this.stringFunction = stringFunction;
		return this;
	}

	public List<ConfigQuery> getConfigQueries() {
		return configQueries;
	}

	public ConfigViews setConfigQueries(List<ConfigQuery> configQueries) {
		this.configQueries = configQueries;
		return this;
	}
}
